﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace TileMapEditor.TileEngine
{
    public class Camera
    {
        //Attributes
        private Vector2 cameraPosition;
        private float cameraSpeed;

       
        //Gets or sets the camera position
        public Vector2 Position
        {
            get { return cameraPosition; }
            set { cameraPosition = value; }
        }

        //Transform Matrix
        public Matrix Transform
        {
            get
            {
                return Matrix.CreateTranslation(new Vector3(-cameraPosition.X, -cameraPosition.Y, 0));
            }
        }

        //Constructor
        public Camera(float speed)
        {
            cameraPosition = Vector2.Zero;
            cameraSpeed = speed;
        }


    }
}
